

function tag(strings, ...values) {
  console.log(strings.raw);//保存的是转义后的原字符串
  let output = '';
  let index;
  for (index = 0; index < values.length; index++) {
    output += strings[index] + values[index]
  }
  output += strings[index];
  return output;
}
const v1 = 1;
const v2 = 2;
let result = tag`a${v1}b${v2}c`;
//console.log(result);